package blue.blog.core.model;

import com.blue.core.tree.ITreeItem;
import com.blue.jdbc.annotation.Id;
import com.blue.jdbc.annotation.Must;
import com.blue.jdbc.annotation.Table;

@Table(name = "cms_channel")
public class CmsChannel implements ITreeItem
{
	@Id
	private Integer id;
	@Must
	private Integer parentId;
	private String name;
	private Integer model;
	private Integer sort;
	private Integer state;
	private Integer docs;

	public CmsChannel()
	{
	}

	public Integer getId()
	{
		return id;
	}

	public void setId(Integer id)
	{
		this.id = id;
	}

	public Integer getParentId()
	{
		return parentId;
	}

	public void setParentId(Integer parentId)
	{
		this.parentId = parentId;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public Integer getModel()
	{
		return model;
	}

	public void setModel(Integer model)
	{
		this.model = model;
	}

	public Integer getSort()
	{
		return sort;
	}

	public void setSort(Integer sort)
	{
		this.sort = sort;
	}

	public Integer getState()
	{
		return state;
	}

	public void setState(Integer state)
	{
		this.state = state;
	}

	public Integer getDocs()
	{
		return docs;
	}

	public void setDocs(Integer docs)
	{
		this.docs = docs;
	}

}
